import sys

def GetConsoleArg(name):
    name = "-" + name
    if not name in sys.argv:
        raise "Specify " + name
    p = sys.argv.index(name)
    if p == len(sys.argv) - 1:
        raise "Specify " + name
    return sys.argv[p + 1]

if __name__ == "__main__":
    beg = GetConsoleArg("beg")
    beg = int(beg)
    end = GetConsoleArg("end")
    end = int(end)
    dflt = GetConsoleArg("dflt")
    dflt = int(dflt)
    n = end - beg + 1
    n += (4 - n % 4) % 4
    h = n / 4
    a = [None] * h
    for i in xrange(len(a)):
        a[i] = [-1] * 4
    y = h - 1
    x = 3
    counter = beg
    while True:
        a[y][x] = counter
        counter += 1
        if x + y == 0:
            break
        if x > 0:
            x = 0
        else:
            x = 3
            y -= 1
    x += 1
    while True:
        a[y][x] = counter
        counter += 1
        if x == 2 and y == h - 1:
            break
        if x == 1:
            x = 2
        else:
            x = 1
            y += 1
    b = [None] * n
    p = 0
    for i in xrange(len(a)):
        for j in xrange(len(a[i])):
            b[p] = a[i][j]
            p += 1
    for i in xrange(len(b) - 1):
        if (b[i] > end):
            b[i] = dflt
    for i in xrange(len(b) - 1):
        sys.stdout.write("%i," % b[i])
    sys.stdout.write("%i\n" % b[len(b) - 1])
    
